﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reg2.aspx.cs" Inherits="reg2" %>

<%@ Register src="boot.ascx" tagname="boot" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>欢迎使用企业评价系统</title>

    <script src="js/calendar.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
        .style1
        {
            text-align: right;
        }
        .style2
        {
            color: #FF0000;
        }
    .STYLE3 {font-size: 24px}
    </style>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','950','height','40','src','images/head1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/head1' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="950" height="40">
          <param name="movie" value="images/head1.swf" />
          <param name="quality" value="high" />
          <embed src="images/head1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="950" height="40"></embed>
        </object>
    </noscript><br /><span class="STYLE3">组织用户注册</span></div>
    <div id="main" style="text-align:center;">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <div id="content">
        <table style="width:700px;text-align:left;">
            <tr>
                <td class="style1">&nbsp;
                    </td>
                <td>&nbsp;
                    </td>
                <td><a href="default.aspx">已经注册？前去登录</a>
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="style2">*</span>用户名：</td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    <asp:TextBox ID="tb_username" runat="server" MaxLength="20" AutoPostBack="True" 
                            ontextchanged="tb_username_TextChanged"></asp:TextBox>
                        <asp:Label ID="Label1" runat="server" style="color: #CC3300" 
                        Text="*此用户名已经使用" Visible="False"></asp:Label>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="tb_username" EventName="TextChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="tb_username" ErrorMessage="必须输入">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" 
                        runat="server" ControlToValidate="tb_username" ErrorMessage="长度不符合" 
                        ValidationExpression="^(\s|\S){4,20}$"></asp:RegularExpressionValidator>
                        </td>
                <td>
                    2-10个中文或4-20个英文字符</td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="style2">*</span>密码：</td>
                <td>
                    <asp:TextBox ID="tb_password" runat="server" TextMode="Password" 
                        CssClass="pwdWidth" MaxLength="16"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="tb_password" ErrorMessage="必须输入">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" 
                        runat="server" ControlToValidate="tb_password" ErrorMessage="长度不符合" 
                        ValidationExpression="^(\s|\S){6,16}$"></asp:RegularExpressionValidator>
                        </td>
                <td>
                    6-16位各种字符长度</td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="style2">*</span>确认密码：</td>
                <td>
                    <asp:TextBox ID="tb_repassword" runat="server" TextMode="Password" 
                        CssClass="pwdWidth" MaxLength="16"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="tb_repassword" ErrorMessage="必须输入">*</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="tb_password" ControlToValidate="tb_repassword" 
                        ErrorMessage="两次密码不一样"></asp:CompareValidator>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="style2">*</span>真实姓名：</td>
                <td>
                    <asp:TextBox ID="tb_realname" runat="server" MaxLength="10"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="tb_realname" ErrorMessage="必须填写">*必须填写</asp:RequiredFieldValidator>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    性别：</td>
                <td>
                    <asp:DropDownList ID="ddl_sex" runat="server">
                        <asp:ListItem Selected="True">男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:DropDownList>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    手机号码：</td>
                <td>
                    <asp:TextBox ID="tb_mphone" runat="server" MaxLength="20"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                        runat="server" ControlToValidate="tb_mphone" ErrorMessage="电话号码格式不正确" 
                        ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)"></asp:RegularExpressionValidator>
                        </td>
                <td>
                    如：137****6848</td>
            </tr>
            <tr>
                <td class="style1">
                    E-mail：</td>
                <td>
                    <asp:TextBox ID="tb_email" runat="server" MaxLength="50"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" 
                        runat="server" ControlToValidate="tb_email" ErrorMessage="格式不正确" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    生日日期：</td>
                <td>
                    <input name="birthday" id="birthday" type="text" onclick="new Calendar(1951,(new Date()).getYear()).show(this);" readonly="readonly"/>
                    <img alt="" src="IMAGES/datePicker.gif" width="16" height="22" align="middle" />
                    <!--验证日期格式的验证控件：正则表达式：
                    ^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$
                        -->
                    
</td>

                
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    住址：</td>
                <td>
                    <asp:TextBox ID="tb_address" runat="server" Width="325px" MaxLength="100"></asp:TextBox>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    邮编：</td>
                <td>
                    <asp:TextBox ID="tb_postcode" runat="server" MaxLength="10"></asp:TextBox>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="style2">*</span>组织名称：</td>
                <td>
                    <asp:TextBox ID="tb_organization" runat="server" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="tb_organization" ErrorMessage="必须输入">*必须输入</asp:RequiredFieldValidator>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    组织电话：</td>
                <td>
                    <asp:TextBox ID="tb_phone" runat="server" MaxLength="20"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" 
                        runat="server" ControlToValidate="tb_phone" ErrorMessage="格式不正确" 
                        ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)"></asp:RegularExpressionValidator>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    组织地址：</td>
                <td>
                    
                        <asp:TextBox ID="tb_organizationaddress" runat="server" Width="325px" 
                            MaxLength="100"></asp:TextBox>
                    
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    组织邮编：</td>
                <td>
                    <asp:TextBox ID="tb_org_postcode" runat="server" MaxLength="10"></asp:TextBox>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    组织联系人：</td>
                <td>
                    <asp:TextBox ID="tb_contactperson" runat="server" MaxLength="10"></asp:TextBox>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    联系人Email：</td>
                <td>
                    <asp:TextBox ID="tb_contactemail" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    组织介绍：</td>
                <td>
                    <asp:TextBox ID="tb_description" runat="server" TextMode="MultiLine" Height="56px" 
                        Rows="4" Width="325px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" 
                        runat="server" ErrorMessage="*请适量删减内容" 
                        ValidationExpression="^(\s|\S){0,100}$" ControlToValidate="tb_description"></asp:RegularExpressionValidator>
                        </td>
                <td>
                    50个汉字或者100个英文字符以内</td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="style2">*</span>验证码：</td>
                <td>
                    <asp:TextBox ID="tb_vali_code" runat="server"></asp:TextBox>
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Code.aspx?" /><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_vali_code">*</asp:RequiredFieldValidator>
                        
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">&nbsp;
                    </td>
                <td>
                    <asp:LinkButton 
                        ID="LinkButton1" runat="server" onclick="LinkButton1_Click" 
                        CssClass="imgborder">
                        <img runat="server" src="~/images/reg.gif" alt="注册" /></asp:LinkButton>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="Javascript:window.close();" CssClass="imgborder"><img src="images/Button_close.bmp" alt="" title="关闭页面" /></asp:LinkButton>
                        </td>
                <td>&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style1">&nbsp;
                    </td>
                <td>&nbsp;
                    </td>
                <td><a href="default.aspx">已经注册？前去登录</a>
                    </td>
            </tr>
        </table>
        </div>
    </div>
    
    
    <uc1:boot ID="boot1" runat="server" />
    
    
    </form>
</body>
</html>
